package com.mask.roll.edu.client.impl;

import com.mask.roll.common.code.ServiceEnums;
import com.mask.roll.common.constant.RollConstants;
import com.mask.roll.common.exception.RollException;
import com.mask.roll.common.util.RollResponse;
import com.mask.roll.edu.client.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * hystrix熔断出错执行信息
 * @author hx
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public RollResponse deleteVod(String id) {
         throw new RollException(ServiceEnums.VOD_DELETE_FAILED.getCode(),
                RollConstants.ERROR,ServiceEnums.VOD_DELETE_FAILED.getMessage());
    }

    @Override
    public RollResponse deleteVodBatch(List<String> videoIdList) {
        throw new RollException(ServiceEnums.VOD_DELETE_MATCH_FAILED.getCode(),
                RollConstants.ERROR,ServiceEnums.VOD_DELETE_MATCH_FAILED.getMessage());
    }
}
